package com.imot.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 软件使用记录表
 * </p>
 *
 * @author wangjiah
 * @since 2023-11-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("software_usage")
@ApiModel(value="SoftwareUsage对象", description="软件使用记录表")
public class SoftwareUsage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "使用记录ID，主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户ID，外键")
    private Integer userId;

    @ApiModelProperty(value = "软件ID，外键")
    private Integer softwareId;

    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "使用时长")
    private Integer duration;


}
